package com.xsomnus.design_patterns.structors.adapter;

/**
 * @author 叶小夏
 * @since 2019-08-27 10:53
 */
public class DogAdapter implements Robot {

    private Dog dog;

    public DogAdapter(Dog dog) {
        this.dog = dog;
    }

    @Override
    public void cry() {
        System.out.println("机器人模拟狗叫...");
        dog.wang();
    }

    @Override
    public void move() {
        System.out.println("机器人模拟狗叫...");
        dog.run();
    }
}
